﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyThuVien.VO;
using QuanLyThuVien.DAL;
using System.Data;
using System.Data.SqlClient;
using System.Data.Sql;

namespace QuanLyThuVien.BUS
{
    class busDocGia
    {
        daoDocGia DAL = new daoDocGia();

        public bool ThemDocGia(DocGia Obj)
        {
            return DAL.ThemDocGia(Obj.MaDocGia, Obj.TenDocGia);
        }

        public bool SuaDocGia(DocGia Obj)
        {
            return DAL.SuaDocGia(Obj.MaDocGia, Obj.TenDocGia);
        }

        public bool XoaDocGia(DocGia Obj)
        {
            return DAL.XoaDocGia(Obj.MaDocGia);
        }

        public DataTable TimDocGia(DocGia Obj)
        {
            return DAL.TimDocGia(Obj.MaDocGia, Obj.TenDocGia);
        }
    }
}
